package com.info.zhiduoduo.weixin.controller;

import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
import com.info.zhiduoduo.weixin.formbean.commonproblem.GetCommonProblemFormBean;
import com.info.zhiduoduo.weixin.service.CommonProblemService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Trink丶
 */
@Api(tags = "常见问题Q&A")
@RestController
@RequestMapping("/commonProblem")
public class CommonProblemController {

	@Autowired
	CommonProblemService commonProblemService;

	@PostMapping("/getCommonProblemList")
	public SmartResult getCommonProblemList(@RequestBody BaseSimpleFormBean<GetCommonProblemFormBean> formBean) {
		return commonProblemService.getCommonProblemList(formBean);
	}
}
